def getNum():
    nums = []
    iMunStr = input("输入一组数字(以空格分割)：")
    iMunStr = iMunStr.split(" ")
    for i in iMunStr:
        nums.append(int(i))
    return nums


def getAvg(nums):
    sumNum = 0
    for i in nums:
        sumNum += i
    return sumNum / len(nums)


print("平均数是：", getAvg(getNum()))
